<!--
  Generated template for the BalancePage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-buttons start>
        <button ion-button (click)="dismissCLI()">
          <img src="assets/img/ios/fanhui-white.png" width='15' height='20'>
          <span style="margin-left:0.5rem;margin-top:0.2rem">余额</span> 
        </button>
    </ion-buttons>
    <ion-title (click)="listShow()">
      {{identity}}
      <img src="assets/img/Comment/sanjiao2@2x.png" alt="" class="arrow">
    </ion-title>
    <ion-buttons end (click)="gotoBill()">
        <button ion-button>
          账单
        </button>
    </ion-buttons>
  </ion-navbar>

</ion-header>


<ion-content>
  <div class="trap">
      <ion-item *ngFor="let item of id,let i=index" (tap)="chose(i)">
          <p class="name">{{item.name}}</p>
          <img item-end src="{{item.checked}}" alt="" class="gou">
      </ion-item>
  </div>
    <div class="redBack">
      <img src="assets/img/yue  shang@2x.png" alt="">
        <p>
          <span>{{total}}</span>
          <i style="font-size:1.6rem;font-style:normal;letter-spacing:0.3rem">余额(元)</i> 
        </p>
    </div>
  <ion-grid>
    <ion-row class="row1">
      <ion-col col-6 (tap)="look1()">
          <img src="assets/img/dangtianshouyi@2x.png" alt="">
          <p>当天收益</p>
          <p class="number">￥{{todayIncome}}</p>
      </ion-col>
      
      <ion-col col-6 (tap)="look2()">
          <img src="assets/img/dangtianzhichu@2x.png" alt="">
          <p>当天支出</p>
          <p class="number">￥{{todayPay}}</p> 
      </ion-col>
    </ion-row>
    <ion-row class="row2">
      <ion-col col-6 (tap)="look3()">
          <img src="assets/img/zongshouyi@2x.png" alt="">
          <p>总收益</p> 
          <p class="number">￥{{allIncome}}</p> 
      </ion-col>
      <ion-col col-6 (tap)="look4()">
          <img src="assets/img/zongzhichu@2x.png" alt="">
          <p>总支出</p>
          <p class="number">￥{{allPay}}</p>
      </ion-col>
    </ion-row>
  </ion-grid>
  
      <ion-footer (click)="getMoney()">
          <ion-toolbar color="light">
            <ion-title>提现</ion-title>
          </ion-toolbar>
      </ion-footer>
</ion-content>
